﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZX.Web.UI.Controls;
using ZX.TR.Bussiness;
using ZX.TR.Library;

namespace ZX.WebApp.TR
{
    public partial class SelectCoursePlan : System.Web.UI.Page
    {
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected string kcjhStr = ""; //计划名称
        protected string studentName = "";  //学员
        protected string city = "";//城市
        protected string endtime = "";//结束时间
        protected string starttime = "";//开始时间
        protected string prepare = ""; //准备事宜
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataBinds();
            }
        }


        private void DataBinds()
        {
            BTrActivityCourse CourseInfo = new BTrActivityCourse();
            string id = this.Request.QueryString["id"];
            if (id != "")
            {
                strIndagateId = id;
                V_CourseSum CourseList = CourseInfo.GetCourseByCoursID(new Guid(id));
                if (CourseList != null)
                {
                    city = CourseList.City;
                    endtime = CourseList.InfactEndTime.ToString();
                    starttime = CourseList.InfactStartTime.ToString();
                    prepare = CourseList.CoursePrepare;
                    kcjhStr = CourseList.CourseName;
                    studentName = CourseList.StudentName;
                    txtSum.Text = CourseList.CourseSumary;
                }
            }
        }
        public string strIndagateId
        {
            get;
            set;
        }
    }
}